package com.zhuangxiaoyan.swagger.config;

import org.springframework.context.annotation.Configuration;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

/**
 * @description Swagger2 配置
 * @param: null
 * @date: 2022/10/23 22:11
 * @return:
 * @author: xjl
 */
@Configuration
@EnableSwagger2
public class Swagger2Config {

//    String title = "springboot-swagger";
//    String description = "这是一个简单的springboot-swagger 演示";
//    String name = "Zhuangxiaoyan";
//    String url = "https://gitee.com/xjl2462612540/senior-architect-springboot";
//    String qq = "462612540@qq.com";
//    String version = "1.0";
//    String packanem = "com.zhuangxiaoyan.swagger.controller";
//
//    @Bean
//    public Docket createRestApi() {
//        return new Docket(DocumentationType.SWAGGER_2).apiInfo(apiInfo()).select().apis(RequestHandlerSelectors.basePackage(packanem)).paths(PathSelectors.any()).build();
//    }
//
//    private ApiInfo apiInfo() {
//        return new ApiInfoBuilder().title(title).description(description).contact(new Contact(name, url, qq)).version(version).build();
//    }

}
